#pragma once
#include <mach/mach.h>

struct ool_msg  {
    mach_msg_header_t hdr;
    mach_msg_body_t body;
    mach_msg_ool_ports_descriptor_t ool_ports;
};

// mach_msg related utils
mach_port_t new_mach_port(void);
int send_ool_ports(mach_port_t where, mach_port_t target_port, int count, int disposition);
